﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="DocSaleTakeUp.aspx.vb" Inherits="DocSaleTakeUp" title="Untitled Page" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
       Preparation For New Take-Up (SALE)</h1>
    <hr />
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <asp:Label ID="lblDocId" runat="server" Visible="false" />
    <asp:Label id="lblTransactionId" runat="server" Visible="false" />
  <div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>
    <p><%--Description of the page--%></p>
    <asp:Panel ID="pnlEntry" runat="server">
    <div class="form-container" id="divContentGeneral">
        <table width="100%"><tr><td class="General-info-title" style="width:150px;"><h3>General Information</h3></td><td><div class="General-info-title-line"></div></td></tr></table>
        <table class="form-table" cellpadding="5" cellspacing="5">
            <tr>
                <th scope="row" style="width: 250px">
                    Open File Ref :
                </th>
                <td>
                    <asp:DropDownList ID="ddlOpenRefNo" runat="server" Width="300px" /><asp:Button ID="btnRefresh" runat="server" Text="Refresh" />
                    <span style="color: Red">*</span><asp:RequiredFieldValidator runat="server" ID="rfvddlOpenRefNo" ControlToValidate="ddlOpenRefNo" ValidationGroup="Entry" ErrorMessage="Required" ForeColor="Red"
                    SetFocusOnError="true" Display="Dynamic" Width="180px" />
                </td>
            </tr>
            <tr>
                <th scope="row" style="width: 250px">
                    Report Title :
                </th>
                <td>
                    <asp:TextBox ID="txtTitle" runat="server" Width="300px" Rows="2" TextMode="MultiLine" />
                    <span style="color: Red">*</span><asp:RequiredFieldValidator runat="server" ID="rfvtxtTitle" ControlToValidate="txtTitle" ValidationGroup="Entry" ErrorMessage="Required" ForeColor="Red"
                    SetFocusOnError="true" Display="Dynamic" Width="180px" />
                </td>
            </tr>          
        </table>
        <br />
 <asp:Panel ID="pnlDetails" runat="server" >
 <div class="General-info-Container">  
<table>
    <tr>
        <td colspan="2">                         
             <div class="General-info-Container" id="divGeneralInfo" style="">
                        <table style="width:100%;" >
                            <tr><td style="width:160px;"><div class="General-info-title"><h3>General Information </h3></div></td>
                            <td><div class="General-info-title-line"></div></td>
                         </tr></table>
                        
                            <table class="General-info-table" cellpadding="5" cellspacing="5" width="100%">
                            <tbody>
                                <tr>
                                    <th scope="row" style="width: 250px">Category :</th>
                                    <td><asp:Label ID="lblTransact" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">REN :</th>
                                    <td><asp:Label ID="lblTransactBy" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Lister :</th>
                                    <td><asp:Label ID="lblListBy" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Date :</th>
                                    <td><asp:TextBox ID="txtDate" runat="server" onKeyPress="javascript: return false;" onPaste="javascript: return false;" />
                                        <asp:ImageButton runat="Server" ID="imgDateCal" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                                        <cc1:CalendarExtender ID="ceDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtDate" PopupButtonID="imgDateCal" />
                                    </td>
                                </tr>                                
                                <tr>
                                    <th scope="row" style="width: 250px">Premise No :</th>
                                    <td><asp:Label ID="lblPremise" runat="server" Font-Size="12px"  /></td>
                                </tr>                                
                                <tr>
                                    <th scope="row" style="width: 250px">Transacted Price :</th>
                                    <td><asp:Label ID="lblTransactedPrice" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Mode Of Payment :</th>
                                    <td>10% Deposit upon signing of SPA. Balance within <asp:textbox ID="txtBalMonthChar" runat="server" />(<asp:textbox ID="txtbalMonthInt" runat="server" onkeypress="isNumberKey(event)" onpaste="return false;" />) month(s) from
                                       <asp:DropDownList ID="ddlModeOfPayment" runat="server">
                                        <asp:ListItem Text="SPA" Value="SPA" />
                                        <asp:ListItem Text="Dev" Value="Dev" />
                                        <asp:ListItem Text="PDC" Value="PDC" />
                                        <asp:ListItem Text="FIC" Value="FIC" />
                                        <asp:ListItem Text="State Authority Consent" Value="State Authority Consent" />                                 
                                        </asp:DropDownList> being obtained with extention of <asp:textbox ID="txtExtMonthChar" runat="server" />(<asp:textbox ID="txtExtMonthInt" runat="server" onkeypress="isNumberKey(event)" onpaste="return false;" />) month(s)
                                        <asp:DropDownList ID="ddlWith" runat="server">
                                        <asp:ListItem Text="with" Value="with" />
                                        <asp:ListItem Text="without" Value="without" />                                                                 
                                        </asp:DropDownList> interest at <asp:TextBox ID="txtInterest" runat="server" onkeypress="isNumberKey(event)" onpaste="return false;" />% p.a. 
                                    </td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Date of Signing SPA :</th>
                                    <td><asp:Label ID="lblDateSPA" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Remakrs :</th>
                                    <td><asp:TextBox ID="txtRemarks" runat="server" width="300px" TextMode="MultiLine" Rows="4" /></td>
                                </tr>                                                          
                                </tbody>
                            </table>
                        </div>
        </td>
    </tr>
    <tr>
        <td width="48%">
             <div class="General-info-Container" id="divLandlord" runat="server">
                        <table style="width:100%;" >
                            <tr><td style="width:150px;"><div class="General-info-title"><h3>Vendor Information</h3></div></td>
                                <td><div class="General-info-title-line"></div></td>
                            </tr></table>

                        <table class="General-info-table" cellpadding="5" cellspacing="5" width="100%">
                                <tr>
                                    <th scope="row" style="width: 250px">Vendor's/Company Name :</th>
                                    <td><asp:Label ID="lblVName" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">NRIC/Company No :</th>
                                    <td><asp:Label ID="lblVNRIC" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px" >Address :</th>
                                    <td><asp:Label ID="lblVAddress" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Contact Person :</th>
                                    <td><asp:Label ID="lblVContacPerson" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Telephone No :</th>
                                    <td><asp:Label ID="lblVTel" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Fax No :</th>
                                    <td><asp:Label ID="lblVFax" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Mobile :</th>
                                    <td><asp:Label ID="lblVMobile" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Commission :</th>
                                    <td><asp:Label ID="lblCommission" runat="server" Font-Size="12px"  /></td>
                                </tr>                                              
                            </table>
                        </div>
        </td>
        <td width="48%">
              <div class="General-info-Container" id="divTenant" runat="server">
                        <table style="width:100%;" >
                            <tr><td style="width:160px;"><div class="General-info-title"><h3>Purchaser Information</h3></div></td>
                                <td><div class="General-info-title-line"></div></td>
                            </tr></table>

                        <table class="General-info-table" cellpadding="5" cellspacing="5" width="100%">
                                <tr>
                                    <th scope="row" style="width: 250px">Purchaser's/Company Name :</th>
                                    <td><asp:Label ID="lblPName" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">NRIC/Company No :</th>
                                    <td><asp:Label ID="lblPNRIC" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Address :</th>
                                    <td><asp:Label ID="lblPAddress" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Contact Person :</th>
                                    <td><asp:Label ID="lblPContactPerson" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Telephone No :</th>
                                    <td><asp:Label ID="lblPTelNo" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Fax No :</th>
                                    <td><asp:Label ID="lblPFaxNo" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Mobile :</th>
                                    <td><asp:Label ID="lblPMobile" runat="server" Font-Size="12px"  /></td>
                                </tr>                               
                                <tr>
                                    <th scope="row" style="width: 250px">Agreed Disbursement :</th>
                                    <td><asp:Label ID="lblDisbursement" runat="server" Font-Size="12px"  /></td>
                                </tr>                                 
                            </table>
                        </div>            
        </td>
    </tr>
    <tr>
        <td width="48%">
             <div class="General-info-Container" id="div1" runat="server">
                        <table style="width:100%;" >
                            <tr><td style="width:230px;"><div class="General-info-title"><h3>Vendor's Solicitors Information</h3></div></td>
                                <td><div class="General-info-title-line"></div></td>
                            </tr></table>

                        <table class="General-info-table" cellpadding="5" cellspacing="5" width="100%">
                                <tr>
                                    <th scope="row" style="width: 250px">Company Name :</th>
                                    <td><asp:Label ID="lblVSCompany" runat="server" Font-Size="12px"  /></td>
                                </tr>                                
                                <tr>
                                    <th scope="row" style="width: 250px">Address :</th>
                                    <td><asp:Label ID="lblVSAddress" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Contact Person :</th>
                                    <td><asp:Label ID="lblVSContactPerson" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Telephone No :</th>
                                    <td><asp:Label ID="lblVSTel" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Fax No :</th>
                                    <td><asp:Label ID="lblVSFax" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Mobile :</th>
                                    <td><asp:Label ID="lblVSMobile" runat="server" Font-Size="12px"  /></td>
                                </tr>                                                                          
                            </table>
                        </div>
        </td>
        <td width="48%">
              <div class="General-info-Container" id="div2" runat="server">
                        <table style="width:100%;" >
                            <tr><td style="width:250px;"><div class="General-info-title"><h3>Purchaser's Solicitors Information</h3></div></td>
                                <td><div class="General-info-title-line"></div></td>
                            </tr></table>

                        <table class="General-info-table" cellpadding="5" cellspacing="5" width="100%">
                                <tr>
                                    <th scope="row" style="width: 250px">Company Name :</th>
                                    <td><asp:Label ID="lblPSCompany" runat="server" Font-Size="12px"  /></td>
                                </tr>                               
                                <tr>
                                    <th scope="row" style="width: 250px">Address :</th>
                                    <td><asp:Label ID="lblPSAddress" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Contact Person :</th>
                                    <td><asp:Label ID="lblPSContactPerson" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Telephone No :</th>
                                    <td><asp:Label ID="lblPSTel" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Fax No :</th>
                                    <td><asp:Label ID="lblPSFax" runat="server" Font-Size="12px"  /></td>
                                </tr>
                                <tr>
                                    <th scope="row" style="width: 250px">Mobile :</th>
                                    <td><asp:Label ID="lblPSMobile" runat="server" Font-Size="12px"  /></td>
                                </tr>                             
                                                              
                            </table>
                        </div>            
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <table class="General-info-table" cellpadding="5" cellspacing="5" width="100%">
                            <tbody>
                                <tr>
                                    <th scope="row" style="width: 250px">Remarks :</th>
                                    <td><asp:TextBox ID="txtOtherRemarks" runat="server" width="300px" Rows="4" TextMode="MultiLine"  /></td>
                                </tr>                                                                               
                            </tbody>
                            </table>
                        </div>
        </td>
    </tr>   
</table>
</div>
        <div class=" form-entry-title" style="line-height:15px; margin-bottom:0px; margin-top:15px;"><span style="color: Red; font-size:10px;"><asp:Label id="lblUpdated" runat="Server" /></span></div>
    <div class="Confirmation-Container">
        <div class="Confirmation-Container">
        <table width="100%" style="margin-left:0px;">
                        <tr>
                            <td style="width:  570px"><div class="General-info-title-line"></div></td>
                            <td style="width:400px;">                                 
                                &nbsp;<asp:Button ID="btnBack" runat="server" Text="Back"  CssClass="search-btn" Width="60px"  />
                                &nbsp;<asp:Button ID="btnPreview" runat="server" Text="Preview"  CssClass="search-btn" Width="60px"  />
                                &nbsp;<asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="Entry" CssClass="search-btn" Width="80px"  />                            
                                 &nbsp;<asp:Button ID="btnDownload" runat="server" Text="Download" ValidationGroup="Entry" CssClass="search-btn" Width="80px"  />
                                <cc1:ConfirmButtonExtender ID="CBEBack" runat="server" TargetControlID="btnBack" />
                                <cc1:ConfirmButtonExtender ID="CBEDownload" runat="server" TargetControlID="btnDownload" />
                            </td>
                            <td><div class="General-info-title-line"></div></td>
                        </tr>
                    </table>
                    <div class=" form-entry-title" style="line-height:15px; margin-bottom:0px; margin-top:15px;"><span style="color: Red; font-size:10px;">*Required fields</span></div>
    </div>         
    </div>
    </asp:Panel>  
    </div>
    </asp:Panel>
    <asp:Panel ID="pnlPreview" runat="server">
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" ShowToolBar="false" width="100%" Height="1000px">
        <LocalReport ReportPath="report/rptDocSaleTakeUp.rdlc">
            <%--<DataSources>
                <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" 
                    Name="dsMonthlyReport_AW_MonthlyReport" />
            </DataSources>--%>
        </LocalReport>
    </rsweb:ReportViewer>
    <%--<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetData" TypeName="dsMonthlyReportTableAdapters.">
    </asp:ObjectDataSource>--%>
    <asp:Button ID="btnBackEntry" runat="server" text="Back" CssClass="search-btn" Width="60px" />
    </asp:Panel>
</asp:Content>



